import { createApp } from 'vue'
//添加一些全局的样式
import '@/styles/index.scss'
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css'
//@ts-ignore忽略当前文件ts类型的检测否则有红色提示(打包会失败)
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//引入路由器
import router from '@/router/index'
//引入仓库
import pinia from './store'
//引入pinia持久化插件
import piniaPluginPersistedState from "pinia-plugin-persistedstate"
import App from '@/App.vue'
//引入轮播图样式
import "swiper/css/swiper.css"
const app=createApp(App)
//注册路由
app.use(router)
//安装仓库
app.use(pinia)
pinia.use(piniaPluginPersistedState)
//获取环境变量
// console.log(import.meta.env);
app.use(ElementPlus, {
    locale: zhCn
})
//将应用挂载到挂载点上
app.mount('#app')

